<form id="pagerForm" method="post" action="{:U($module_name.'/'.$action_name."?model=".$model)}">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type='hidden' name='catid' value='{$catid}' />
</form>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{:U($module_name.'/'.$action_name)}" method="post">
        <input type='hidden' name='catid' value='{$catid}' />
		<div class="searchBar">
            <ul class="searchContent">
                <li style="width:200px;">
                <label style="width: 50px;">关键字：</label>
                <input type="text" name="keywords" value="{$keywords}"/>
                </li>
                <li style="width: 100px;">
                <select class="combox" name="sfield">
                	<option value="all" >全部</option>
                    <option value="title" >文章标题</option>
                  	<option value="username" >操作人</option>
					<option value="userid" >操作人Id</option>
					
                </select>
				<input type="hidden" name="sfield_name" value="title,username,userid" />					
				
                </li>
				<!--	
				<li>
					状态：
					<select name="status">
						<option value='1' selected>进行中</option>
						<option value='0'>已结束</option>
					</select>
				</li>
				-->
                <li style="padding-top:0;"><div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
            </ul>
        </div>
    </form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="{:U('Article/add',array('catid'=>$catid))}" target="navTab"><span>添加</span></a></li>
			<!-- <li><a class="delete" href="demo/common/ajaxDone.html?uid={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="demo_page4.html?uid={sid_user}" target="navTab"><span>修改</span></a></li>
			
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
			-->
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>ID</th>
				<th orderField="catid" {if $orderField=='catid'}class="{$orderDirection}"{/if}>类型</th>
				<th orderField="title" {if $orderField=='title'}class="{$orderDirection}"{/if}>标题</th>
				<th orderField="username" {if $orderField=='username'}class="{$orderDirection}"{/if}>创建人</th>
				<th orderField="createtime" {if $orderField=='createtime'}class="{$orderDirection}"{/if}>创建时间</th>
				<th orderField="updatetime" {if $orderField=='updatetime'}class="{$orderDirection}"{/if}>更新时间</th>				
				<th>状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr target="sid_user" rel="9" style="height:40px;">
				<td>{$vo.id} </td>
				<td>{$vo.name}</td>
				<td>{$vo.title}</td>
				<td>{$vo.username}</td>
				<td>{$vo.createtime|date="Y-m-d H:i:s",###}</td>
				<td>{$vo.updatetime|date="Y-m-d H:i:s",###}</td>
				<td>{if $vo['status']}<font color='green'>可用</font>{else}不可用{/if}</td>				
				<td>
					{if $vo['status']}
					<a class="btnEdit" href="{:U('Article/add',array('id'=>$vo['id'],'catid'=>$catid))}" target="navTab" title="编辑">编辑</a>
					{/if}
					<a class="btnDel" href="{:U('Article/del',array('id'=>$vo['id']))}" target="ajaxTodo" title="删除">删除</a>
				</td>
			</tr>
			</volist>
		</tbody>
	</table>
    <div class="panelBar" >
        <div class="pages">
            <span>显示 </span>
            <select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
                <option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
                <option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
                <option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
            </select>
            <span> 条，共 {$totalCount} 条</span>
        </div>
        
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
    </div>
</div>
